package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;

public class UserServiceImpl implements UserService {
    private String name;
    private String age;
    private UserDao userDao;
    public UserServiceImpl(String name, String age, UserDao userDao) {
        this.name = name;
        this.age = age;
        this.userDao = userDao;
    }

    @Override
    public void save() {
        System.out.println("UserServiceImpl save is running...");
        System.out.println(name);
        System.out.println(age);
    }
}